dojo.provide("com.otupia.userInfo");

com.otupia.userInfo = {
	name : "com.otupia.userInfo",
	initSuccessed : false,
	init : function(data){
		if(!data || !data.userID)
		{
			throw {
				message : "User data is bad formated!",
				srcObject : this.name
			};
			return false;
		}
		this.userID = data.userID;
		this.userName = data.userName;
		this.friendList = data.friendList;
		this.initSuccessed = true;
	}
};